{php include wl_template('common/header');}
<ul class="nav nav-tabs">
    <li class="active"><a href="{php echo web_url('headline/headline/infoList')}">头条信息</a></li>
</ul>
<div class="app-content">
    <!--头部信息-->
    <div class="app-filter">
        <div class="filter-action">
            <a class="btn btn-primary" href="{php echo web_url('headline/headline/getIntoEdit')}">发布头条</a>
            <a href="{php echo web_url('headline/headline/import')}" data-toggle='ajaxModal' class="btn btn-success">导入微信图文</a>
        </div>
        <div class="filter-list">
            <form class="form-horizontal" action="{php echo web_url('headline/headline/infoList')}" method="post">
                <div class="form-group">
                    <div class="col-sm-2 control-label">搜索内容</div>
                    <div class="col-sm-9">
                        <input type="text" class="form-control" name="search" value="{$search}" placeholder="作者/标题">
                    </div>
                </div>
                <div class="form-group">
                    <div class="col-sm-2 control-label"></div>
                    <div class="col-sm-6">
                        <div class="input-group">
                            <button class="btn btn-primary" type="submit" >搜索</button>
                        </div>
                    </div>
                </div>
            </form>
        </div>
    </div>
    <!--列表信息-->
    <div class="app-table-list">
        <div id="list" class="panel tab-pane panel-default">
            <div class="table-responsive">
                <table class="table table-hover table-bordered">
                    <thead>
                        <tr>
                            <th class="text-center" width="10%">标题</th>
                            <th class="text-center" width="10%">作者</th>
                            <th class="text-center" width="10%">简介</th>
                            <th class="text-center" width="10%">分类</th>
                            <th class="text-center" width="10%">关联商品</th>
                            <th class="text-center" width="10%">发布时间</th>
                            <th class="text-center" width="5%">浏览量</th>
                            <th class="text-center" width="20%">操作</th>
                        </tr>
                    </thead>
                    <tbody>
                    {loop $list $k $v}
                        <tr class="text-center">
                            <td>{$v['title']}</td>
                            <td>{$v['author']}</td>
                            <td>{$v['summary']}</td>
                            <td>{$v['one_name']}{if $v['one_name'] && $v['two_name']} — {/if} {$v['two_name']}</td>
                            <td>{$v['goods_name']}</td>
                            <td>{php echo date("Y-m-d H:i:s",$v['release_time'])}</td>
                            <td>{$v['browse']}</td>
                            <td>
                                <a class="btn btn-sm btn-success js-clip" href="javascript:;" data-url="{php echo h5_url('pages/mainPages/headline/headlineDetail',['id'=>$v['id']])}" >复制链接</a>
                                <a class="btn btn-sm btn-info js-clip" href="javascript:;" data-url="pages/mainPages/headline/headlineDetail?id={$v['id']}" >复制路径</a>
                                <a class="btn btn-sm btn-warning" href="{php echo web_url('headline/headline/getIntoEdit',array('id'=>$v['id']))}" >编辑</a>
                                <a class="btn btn-sm btn-danger"  data-toggle="ajaxRemove" href="{php echo web_url('headline/headline/delHeadline',array('id'=>$v['id']))}" data-confirm="确定删除当前信息?">删除</a>
                            </td>
                        </tr>
                    {/loop}
                    </tbody>
                </table>
            </div>
            <div class="app-table-foot clearfix">
                <div class="pull-left">
                </div>
                <div class="pull-right">
                    {$pager}
                </div>
            </div>
        </div>
    </div>
</div>
{php include wl_template('common/footer');}